<%@page import="servlet.CommitteeTable"%>
<%@page import="Logic.Authorizer"%>
<%@page import="servlet.StaffappStaffDropdown"%>
<%@page import="servlet.CommitteeDropdown"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	if (session.getAttribute("name") == null) {
		response.sendRedirect("login.jsp");
	} 
%>

<!-- Declare the first header -->
<jsp:include page="t_header.jsp" />

<!-- Declare Breadcrumbs options -->
<div class="breadcrumbs_container">
	<article class="breadcrumbs">
		<a href="committee_main.jsp">Manage Committee</a>
		<div class="breadcrumb_divider"></div>
		<a class="current">Search Committee</a>
	</article>
</div>
<jsp:include page="header.html" />
<!-- Declare sidebar -->
<jsp:include page="t_siderbarcommittee.jsp" />

<!-- Main Content -->
<section id="main" class="column">
	<%
		if (request.getParameter("error") != null) {
			if (request.getParameter("error").equals("1"))
				out.print("<h4 class='alert_error'>Error - No blanks.</h4>");
		}
	%>

	<article class="module width_3_quarter">
		<form action="CommitteeSearch" method="POST">
			<header>
				<h3>Search committee</h3>
			</header>
			<div class="module_content">
				<fieldset id="staffFieldset"
					style="width: 48%; float: left; margin-right: 3%;">
					<label>By staff: </label> <select name="staff">
						<option value="blank"></option>
						<%
							StaffappStaffDropdown ssd = new StaffappStaffDropdown(out);
							ssd.doGet(request, response);
						%>
					</select>

				</fieldset>

				<fieldset id="committeeFieldset" style="width: 48%; float: left;">
					<label>By committee: </label> <select name="committee">
						<option value="blank"></option>
						<%
							CommitteeDropdown cdd = new CommitteeDropdown(out);
							cdd.doGet(request, response);
						%>
					</select>
				</fieldset>

				<div class="clear"></div>
			</div>
			<footer>
				<div class="submit_link">
					<input type="submit" name="submit" value="Search" class="alt_btn">
				</div>
			</footer>
		</form>
	</article>
	<!-- end of content manager article -->
	<div class="spacer"></div>
</section>

<!-- Declare closing tags -->
<jsp:include page="t_footer.jsp" />